package com.hyj.serve.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huitian.mybatis.plus.entity.BaseEntity;
import com.huitian.mybatis.plus.entity.SuperEntity;
import lombok.Data;

/**
 * @author HeYuJie
 * @date 2022/6/1
 */
@Data
@TableName("host")
public class HostEntity extends SuperEntity {

    @TableId(value = "id_", type = IdType.AUTO)
    private Integer id;

    @TableField("name_")
    private String name;

    @TableField("ip_")
    private String ip;

    @TableField("port_")
    private Integer port;

    @TableField("user_name")
    private String username;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @TableField("password_")
    private String password;

    @TableField("remarks_")
    private String remarks;


}
